package com.e3.sysmg.security.server;

import com.e3.core.base.ServiceLocator;
import com.e3.sysmg.security.service.SecurityQueryService;
import com.e3.sysmg.security.service.SecurityService;

public class SecurityServiceClient {
	
	private static SecurityService secService;
	private static SecurityQueryService secQueryService;
	
	public static SecurityService getSecService() {
		if(secService == null){
			secService = ServiceLocator.getService(SecurityService.class);
		}
		return secService;
	}

	public static SecurityQueryService getSecQueryService() {
		if(secQueryService == null){
			secQueryService = ServiceLocator.getQueryService(SecurityQueryService.class);
		}
		return secQueryService;
	}

}
